-- GENERATED SPELL FOR [Coilfang Serpentguard] --


function spell0_21298(pUnit, Event) --@Corrupt Devotion Aura,Self--
pUnit:FullCastSpellOnTarget(38603,pUnit)
pUnit:RegisterEvent('Sorts_21298', 598, 1)
end

function spell1_21298(pUnit, Event) --@Spell Reflection,Self--
pUnit:FullCastSpellOnTarget(38599,pUnit)
pUnit:RegisterEvent('Sorts_21298', 8259, 1)
end

function Sorts_21298(pUnit, Event)
local choix_sorts_21298 = math.random(0, 1)
if choix_sorts_21298 == 0 then
pUnit:RegisterEvent('spell0_21298', 1, 1)
end
if choix_sorts_21298 == 1 then
pUnit:RegisterEvent('spell1_21298', 1, 1)
end
end

function mob21298_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21298', math.random(1500, 3000), 1)
end

function mob21298_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21298_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21298_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21298, 1, 'mob21298_Action')
RegisterUnitEvent(21298, 2, 'mob21298_Leave')
RegisterUnitEvent(21298, 3, 'mob21298_Kill')
RegisterUnitEvent(21298, 4, 'mob21298_Die')
